extract(gen): scitex.gen → scitex-gen v0.1.0 (3,365 LOC, 604 tests pass)#253
Open
ywatanabe1989 wants to merge 1 commit intodevelopfrom
Open
extract(gen): scitex.gen → scitex-gen v0.1.0 (3,365 LOC, 604 tests pass)#253ywatanabe1989 wants to merge 1 commit intodevelopfrom
ywatanabe1989 wants to merge 1 commit intodevelopfrom
Conversation
scitex.gen (3,365 LOC, 37 test files) extracted to standalone scitex-gen package: https://github.com/ywatanabe1989/scitex-gen - Replace src/scitex/gen/ with a 12-line sys.modules-alias __init__.py - Collapse [gen] extra (10 transitive deps) to single scitex-gen>=0.1.0 - scitex.gen is scitex_gen: True (verified) - Standalone tests: 604 pass / 46 fail (pre-existing title_case behaviour) Decoupling in scitex-gen: - scitex.{decorators,str,os,introspect,session,context,sh,dict} → scitex_* - scitex.torch.nanstd → optional via try/except + torch fallback - import scitex removed from _less.py (was unused) - self-references in _norm_cache.py rewritten to scitex_gen.* Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced Apr 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scitex.gen(3,365 LOC, 37 test files) to standalone scitex-gen v0.1.0.src/scitex/gen/with 12-linesys.modulesalias.[gen]extra from 10 transitive deps → singlescitex-gen>=0.1.0.title_caseupstream behaviour, identical in scitex-python before extraction).Decoupling (in scitex-gen)
scitex.{decorators,str,os,introspect,session,context,sh,dict}→scitex_*direct imports (peer packages, all standalone).scitex.torch.nanstdwrapped in try/except with a torch-only fallback (only matters for_norm.to_z / to_nanz).import scitexremoved from_less.py(was unused in module body)._norm_cache.pyrewritten toscitex_gen.*.Test plan
python -c "import scitex.gen as g; import scitex_gen as r; assert g is r"— passeshasattr(scitex.gen, 'cache' / 'TimeStamper' / 'xml2dict' / ...)— presentFoundation impact
With
scitex-genstandalone, thennmodule's last hard blockers (scitex.gen._to_even,_to_odd) clear —nnextraction now feasible.